package com.lzh.dlykserver.service;

import com.github.pagehelper.PageInfo;
import com.lzh.dlykserver.entity.TUser;
import com.lzh.dlykserver.query.PwdDTO;
import com.lzh.dlykserver.query.UserQuery;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface UserService extends UserDetailsService {

    PageInfo<TUser> getUserByPage(Integer current);

    TUser getUserById(Integer id);

    int saveUser(UserQuery usrQuery);

    int updateUser(UserQuery usrQuery);

    int deleteUser(Integer id);

    int batchDeleteUser(List<String> idList);

    List<TUser> getOwnerList();

    int changePassword(PwdDTO pwdDTO);
}
